home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
LocaleObjects.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
9KB
|
314 lines
;
; File: LocaleObjects.a
;
; Contains: LocaleObject Manager interfaces
;
; Version: Technology: System 8
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__LOCALEOBJECTS__') = 'UNDEFINED' THEN
__LOCALEOBJECTS__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF &TYPE('__TEXTOBJECTS__') = 'UNDEFINED' THEN
include 'TextObjects.a'
ENDIF
IF &TYPE('__TEXTCOMMON__') = 'UNDEFINED' THEN
include 'TextCommon.a'
ENDIF
IF &TYPE('__FILEMANAGERTYPES__') = 'UNDEFINED' THEN
include 'FileManagerTypes.a'
ENDIF
IF FOR_SYSTEM8_PREEMPTIVE THEN
; Locale errors
; typedef OSStatus LocaleErrors
; typedef UInt16 LocaleIterateOp
kLocaleForwardIterate EQU 0
kLocaleBackwardIterate EQU 1
; typedef SInt16 LocaleNameIdentifier
kLocaleObjectKeyNameIndex EQU 0
kLocaleObjectUserName EQU 1
kLocaleObjectCopyrightString EQU 2
kLocaleObjectManufacturerString EQU 3
kLocaleObjectFunctionDescription EQU 4
kLocaleObjectVersionString EQU 5
; typedef LocaleNameIdentifier LocaleDefaultValue
kLocaleLanguageID EQU $000A ; language id
kLocaleLanguageLocalizedName EQU $1001 ; localized name of language
kLocaleLanguageEnglishName EQU $000B ; English name of language
kLocaleAbbreviatedLanguageName EQU $000C ; abbreviated language name
kLocaleLanguageNativeName EQU $000D ; native name of language
kLocaleCountryCode EQU $000E ; country code
kLocaleLocalizedCountryName EQU $000F ; localized name of country
kLocaleEnglishCountryName EQU $1002 ; English name of country
kLocaleAbbreviatedCountryName EQU $001F ; abbreviated country name
kLocaleNativeCountryName EQU $002F ; native name of country
kLocaleDefaultLanguageID EQU $003F ; default language id
kLocaleDefaultCountryCode EQU $004F ; default country code
; typedef UInt16 LocaleObjectContext
kLocaleObjectIsGlobal EQU 0
kLocaleObjectIsLocal EQU 1
; typedef OSType LocaleDataTag
; typedef UInt32 LocaleObjectTagIndex
NameValuePair RECORD 0
name ds.l 1 ; offset: $0 (0)
valueLength ds.l 1 ; offset: $4 (4)
value ds.l 1 ; offset: $8 (8)
sizeof EQU * ; size: $C (12)
ENDR
; typedef struct NameValuePair * NameValuePairPtr
NameTableEntry RECORD 0
nameID ds.w 1 ; offset: $0 (0)
reserved ds.w 1 ; offset: $2 (2)
name ds.l 1 ; offset: $4 (4)
sizeof EQU * ; size: $8 (8)
ENDR
;
; extern LocaleRef GetCurrentProcessLocaleRef(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetCurrentProcessLocaleRef
ENDIF
;
; extern OSStatus GetLocaleReference(LocaleIdentifier identifier, LocaleRef *locale)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleReference
ENDIF
;
; extern OSStatus LocaleIteratorCreate(LocaleRef locale, ConstStr255Param keyName, ItemCount countAttributes, const NameValuePair *attributes, LocaleIteratorReference *localeIteratorRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION LocaleIteratorCreate
ENDIF
;
; extern OSStatus LocaleIteratorDispose(LocaleIteratorReference localeIteratorRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION LocaleIteratorDispose
ENDIF
;
; The void * returned as the dataPtr and the LocaleObjectRef * both
; point into read-only memory. Use const to invoke the compiler's help
; in preventing write-accesses to that data.
;
;
; extern OSStatus LocaleIterate(LocaleIteratorReference localeIteratorRef, LocaleIterateOp op, const void **dataPtr, ByteCount *dataSize, LocaleObjectRef *objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION LocaleIterate
ENDIF
;
; extern OSStatus GetLocaleObjectName(LocaleObjectRef objectRef, LocaleNameIdentifier nameID, TextEncoding encoding, LocaleIdentifier languageRegion, ByteCount *nameSize, TextObject name)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectName
ENDIF
;
; extern OSStatus GetLocaleObjectKeyName(LocaleObjectRef objectRef, Str255 keyName)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectKeyName
ENDIF
;
; extern OSStatus GetLocaleObjectData(LocaleObjectRef objectRef, const void **localeObjectData, ByteCount *dataSize)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectData
ENDIF
;
; extern OSStatus GetLocaleObjectAttributes(LocaleObjectRef objectRef, const NameValuePair **attributes, ItemCount *countPairs)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectAttributes
ENDIF
;
; extern OSStatus GetLocaleObjectFSObjectRef(LocaleObjectRef localeObjRef, FSObjectRef *fileRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectFSObjectRef
ENDIF
;
; extern OSStatus GetLocaleObjectLocale(LocaleObjectRef objectRef, LocaleRef *locale, LocaleIdentifier *localeID)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectLocale
ENDIF
;
; extern OSStatus GetLocaleObjectMemoryContext(LocaleObjectRef objectRef, LocaleObjectContext *context)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectMemoryContext
ENDIF
;
; extern OSStatus SetLocaleIterator(LocaleRef locale, ConstStr255Param keyName, ItemCount countAttributes, const NameValuePair *attributes, LocaleIteratorReference *localeIteratorRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SetLocaleIterator
ENDIF
;
; extern OSStatus SearchOneLocaleObject(LocaleRef locale, ConstStr255Param keyName, ItemCount countAttributes, const NameValuePair *attributes, const void **localeObjectData, ByteCount *dataSize, const LocaleObjectRef *objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SearchOneLocaleObject
ENDIF
;
; extern OSStatus AddLocaleObject(LocaleRef locale, void *localeObjectData, ByteCount objectSize, ConstStr255Param keyName, ItemCount countUserNames, const NameTableEntry *userNames, ItemCount countAttributes, const NameValuePair *attributes, LocaleObjectRef *objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION AddLocaleObject
ENDIF
;
; extern OSStatus RemoveLocaleObject(LocaleObjectRef objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RemoveLocaleObject
ENDIF
;
; extern ItemCount CountLocaleObjectAssociatedDataTags(LocaleObjectRef objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION CountLocaleObjectAssociatedDataTags
ENDIF
;
; extern OSStatus GetIndexedAssociatedData(LocaleObjectRef objectRef, LocaleObjectTagIndex tagIndex, LocaleDataTag *tag, const void **associatedDataPtr, ByteCount *size)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetIndexedAssociatedData
ENDIF
;
; extern OSStatus GetLocaleObjectAssociatedData(LocaleObjectRef objectRef, LocaleDataTag tag, const void **associatedDataPtr, ByteCount *size)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleObjectAssociatedData
ENDIF
;
; extern ItemCount CountInstalledLocales(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION CountInstalledLocales
ENDIF
;
; extern OSStatus GetFirstLocale(LocaleRef *locale, LocaleIdentifier *localeID)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetFirstLocale
ENDIF
;
; extern OSStatus GetNextLocale(LocaleRef *locale, LocaleIdentifier *localeID)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetNextLocale
ENDIF
;
; extern OSStatus SetCurrentProcessLocale(LocaleIdentifier localeID, LocaleRef *locale)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SetCurrentProcessLocale
ENDIF
;
; extern LocaleRef GetSystemDefaultLocale(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetSystemDefaultLocale
ENDIF
;
; extern LocaleIdentifier GetSystemLocaleIdentifier(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetSystemLocaleIdentifier
ENDIF
;
; extern LocaleIdentifier GetCurrentProcessLocaleIdentifier(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetCurrentProcessLocaleIdentifier
ENDIF
;
; extern LocaleIdentifier GetLocaleRefLocaleIdentifier(LocaleRef locale)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleRefLocaleIdentifier
ENDIF
;
; extern OSStatus GetDefaultLocaleObject(LocaleRef locale, ConstStr255Param keyName, LocaleObjectRef *objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetDefaultLocaleObject
ENDIF
;
; extern OSStatus SetDefaultLocaleObject(LocaleRef locale, LocaleObjectRef objectRef)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SetDefaultLocaleObject
ENDIF
;
; extern OSStatus GetLocaleInformation(LocaleRef locale, LocaleDefaultValue infoIndex, TextObject *infoText)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleInformation
ENDIF
ENDIF
; FOR_SYSTEM8_PREEMPTIVE
ENDIF ; __LOCALEOBJECTS__